package src.messagesToServer;

import java.util.List;



import src.categoryStructures.Categories;
import src.messagesToClient.MessageToClient;
import src.serverSide.Control;

/**
 * @author John Stewart
 * This class is a request to set the categories of the item given by the item ID 
 */
public class setItemCategories extends MessageToServer {
	public int itemid;
	public Categories categories;
	
	public setItemCategories(int itemid, Categories categories2) {
		this.itemid = itemid;
		this.categories = categories2;
	}

	/* (non-Javadoc)
	 * @see dataStructures.MessageToServer#execute(java.lang.String, serverSide.Control)
	 */
	@Override
	public MessageToClient execute(String address, Control control) {
		return control.setItemCategories(address, itemid, categories);
	}

}
